/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('service_item', {
    svc_item_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement:true,
    },
    name: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    status: {
      type: DataTypes.INTEGER(4),
      allowNull: false,
      defaultValue:1
    },
    ctime: {
      type: DataTypes.TIME,
      allowNull: false,
      defaultValue:DataTypes.literal('CURRENT_TIMESTAMP')
    },
    mtime: {
      type: DataTypes.TIME,
      allowNull: false,
      defaultValue:DataTypes.literal('CURRENT_TIMESTAMP')
    }
  }, {
    tableName: 'service_item'
  });

  Model.associate = function() {

  }

  return Model;
};
